-- GENERATED SPELL FOR [Farmer Dalson] --


function spell0_10836(pUnit, Event) --@Altered Cauldron Toxin,n/a--
pUnit:FullCastSpellOnTarget(17650,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10836', 625, 1)
end

function spell1_10836(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_10836', 546, 1)
end

function spell2_10836(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(16128,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10836', 0, 1)
end

function spell3_10836(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_10836', 557, 1)
end

function Sorts_10836(pUnit, Event)
local choix_sorts_10836 = math.random(0, 3)
if choix_sorts_10836 == 0 then
pUnit:RegisterEvent('spell0_10836', 1, 1)
end
if choix_sorts_10836 == 1 then
pUnit:RegisterEvent('spell1_10836', 1, 1)
end
if choix_sorts_10836 == 2 then
pUnit:RegisterEvent('spell2_10836', 1, 1)
end
if choix_sorts_10836 == 3 then
pUnit:RegisterEvent('spell3_10836', 1, 1)
end
end

function mob10836_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10836', math.random(1500, 3000), 1)
end

function mob10836_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10836_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10836_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10836, 1, 'mob10836_Action')
RegisterUnitEvent(10836, 2, 'mob10836_Leave')
RegisterUnitEvent(10836, 3, 'mob10836_Kill')
RegisterUnitEvent(10836, 4, 'mob10836_Die')
